package com.dormms.dao;

import java.util.List;
import com.dormms.bean.GoodRepair;
import com.dormms.dto.GoodRepairShowInfo;

public interface GoodReapirDao {
	//插入维修记录表
	public Integer insertGoodRepair(GoodRepair repair);
	//更新维修信息 学生
	public Integer updateGoodRepaiByStu(GoodRepair goodRepair);
	//通过包修编号查看报修信息
	public GoodRepair getGoodRepair(Integer goodRepairId);
	//查询维修记录 学生
	public List<GoodRepairShowInfo> getGoodRepairShowInfoByStu(GoodRepair goodRepair);
	//查询维修记录 维修人员
	public List<GoodRepairShowInfo> getGoodRepairShowInfoByStaff(GoodRepair goodRepair);
	public Integer updateGoodRepairStatusByStaff(GoodRepair goodRepair);
	public Integer updateGoodRepairByStaff(GoodRepair goodRepair);
	public Integer deleteGoodRepairInfo(Integer goodRepairId);
	public Integer deleteGoodRepairByDormId(Integer dormId);
	public Integer deleteGoodRepairByStuId(String stuId);
}
